package com.firefighting.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.firefighting.entity.Location;

public interface LocationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Location record);

    int insertSelective(Location record);

    Location selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Location record);

    int updateByPrimaryKey(Location record);
    
    //Hanjd 根据任务id查询位置信息
    List<com.firefighting.entity.Location> queryLocationId(Integer taskId);
    
    //Hanjd 根据企业id查询其所有位置信息*/
	List<HashMap<String, Object>> queryLocationEnterpriseId(Integer enterpriseId);
	
	//Hanjd 根据企业id,人员姓名，起始时间查询其所有位置信息*/
	List<HashMap<String, Object>> queryLocationSearch(@Param("enterpriseId") int enterpriseId,@Param("name") String name,@Param("contractName") int contractName,@Param("beforeTime") Date priDay,@Param("afterTime") Date finalDay);
}